//var myScroll;
require.config({
    baseUrl: '/js/common', 
    paths: {
        libs: '/js/libs'
    }
});
define(function(require){
	// 加载js
	var rs_zepto = require('libs/zepto');
	var rs_yingSoftCookie = require('yingSoftCookie');
	var rs_yingSoftPrg = require('yingSoftPrg');
	var rs_agentInfo = require('agentInfo');
	var rs_ajax = require('ajax');
	var rs_md5 = require('md5');
	var rs_dialog = require('dialog');
	var rs_storage = require('storage');
	// 初始化
	var _isClick = true;	// 防止多次点击
    tongji();
});
function tongji(){
	var appID = G_Cookie.getAppID();
    var appEName = G_Cookie.getAppEName();
    var UserID=G_Cookie.getUserID();
    var getUserName=G_Cookie.getUserName();
	 var URL = '/api/analysis/analysisApi/' + appID  + '/' + UserID  + '/' + appEName  + '/' + getUserName;
    var _success = function (json) { //G_AjaxApi.get的回调函数
        //接收端口返回的数据,转换成json格式
        var jsonData = JSON.parse(json);
        if (jsonData.status === 200) {
        	var count=jsonData.data.analysisResult.Result[0];
        	$('.errorC i').text(count.testErrorNum);
        	$('.noteC i').text(count.noteNum);
        	$('.collectC i').text(count.favNum);
        } 
    }
    G_AjaxApi_Record.get(URL, false, _success);
}
